<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>JSON FORMAT</title>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/json-pushlet-client.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.cookie.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/pushlet-api.js"></script>
    <script type="text/javascript">
        $.pushlet.joinListen(new Date().getTime(), "pushthread");
        function pushthread(event) {
            var now = event.now;
            $('#_content').append(now + " ");
            var al = event.al;
            al && $('#_content').append(al[0]['name'] + " " + al[1]['name'] + "<br/>");
        }
    </script>
</head>
<body>
<div id="_content"></div>
</body>
</html>
